package com.zhangj.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName MyRule
 * @Description
 * @Author zhangjie
 * @Date 2022/1/15 16:46
 * @Version 1.0
 */

@SpringBootConfiguration
public class MyRule {

    @Bean
    public IRule iRule(){
        return new RoundRobinRule();
    }
}
